package com.skyline.wo.model;

import java.util.Date;

import com.skyline.base.model.TokenValidatable;
import com.skyline.common.cache.Cachable;
import com.skyline.common.util.CommonUtils;

public class ShortMessage implements TokenValidatable, Cachable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1728148566829692749L;
	private Long id;
	private Long ownerId;
	private String ownerNickname;
	private String ownerPortrait;
	private String text;
	private Long sourceOwnerId;
	private String sourceOwnerNickname;
	private String comment;
	private Date createTime;
	private String submitToken;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(long ownerId) {
		this.ownerId = ownerId;
	}

	public String getOwnerNickname() {
		return ownerNickname;
	}

	public void setOwnerNickname(String ownerNickname) {
		this.ownerNickname = ownerNickname;
	}

	public String getOwnerPortrait() {
		return ownerPortrait;
	}

	public void setOwnerPortrait(String ownerPortrait) {
		this.ownerPortrait = ownerPortrait;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public long getSourceOwnerId() {
		return sourceOwnerId;
	}

	public void setSourceOwnerId(long sourceOwnerId) {
		this.sourceOwnerId = sourceOwnerId;
	}

	public String getSourceOwnerNickname() {
		return sourceOwnerNickname;
	}

	public void setSourceOwnerNickname(String sourceOwnerNickname) {
		this.sourceOwnerNickname = sourceOwnerNickname;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getCreateTime() {
		return CommonUtils.cloneDate(createTime);
	}

	public void setCreateTime(Date createTime) {
		this.createTime = CommonUtils.cloneDate(createTime);
	}

	@Override
	public String getFkId() {
		return this.ownerId.toString();
	}

	@Override
	public String getSubmitToken() {
		return this.submitToken;
	}

	@Override
	public void setSubmitToken(String submitToken) {
		this.submitToken=submitToken;
	}

}
